#ifndef SETTINGDIALOG_H
#define SETTINGDIALOG_H

#include <QDialog>
#include "protocol.h"

namespace Ui {
class SettingDialog;
}

class SettingDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SettingDialog(QWidget *parent = nullptr);
    ~SettingDialog();

    QString strName() const;
    void setStrName(const QString &strName);

    QString strVersion() const;
    void setStrVersion(const QString &strVersion);

    QString strAuthor() const;
    void setStrAuthor(const QString &strAuthor);

    QString strTemplate() const;
    void setStrTemplate(const QString &strTemplate);

private slots:
    void on_buttonBox_accepted();

    void on_buttonBox_rejected();

private:
    Ui::SettingDialog *ui;

    QString m_strName;
    QString m_strVersion;
    QString m_strAuthor;
    QString m_strTemplate;
};

#endif // SETTINGDIALOG_H
